package com.shop.pojo.wms;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

//采购信息
@TableName("wms_purchase")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Wms_Purchase {
    @TableId(type = IdType.AUTO)
    private Long id;//采购单id
    private String name;
    private Long assignee_id;//采购人id
    private String assignee_name;//采购人名
    private String phone;//联系方式
    private int priority;//优先级
    private Integer status;//状态
    private Long ware_id;//仓库id
    private double amount;//总金额
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date create_time;//创建日期
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date update_time;//更新日期
}
